﻿namespace PublicModels.Results.Basic;

/// <summary>
/// 请求第三方API的结果
/// </summary>
public class QueryApiResult<ResultType> : Result where ResultType : APIObjBase
{
    public string SourceURI { get; init; }

    public ResultType? ResultObject { get; init; }

    public QueryApiResult(string sourceURI)
    {
        SourceURI = sourceURI;
    }

    public string? MessageFrom3rdPartyAPI { get; set; }

    public HttpStatusCode? HttpCode { get; set; }
}
